<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<style type="text/css">
  *{
  	margin: 0;
  	padding: 0;
  }
  	#menu{
  		width: 700px;
  		height: 400px;
  		margin: 0 auto;
  	}
  	#list{
  		list-style: none;
  		display: block;
	 }
  		
    #list li{
  		 float: left;
  		 margin-left: 50px;
  	}
  	#list li a{
  		
  		text-decoration: none;
  	}
  	#list ul{
  		display: block;
  		
  	}
</style>

        <script type="text/javascript">
    	  window.onload = function() {
      	  	var Oul = document.getElementById('list');
      	  	Oul.children[1].onmouseover = function (){
     	  		var childul = this.getElementsByTagName("ul")[0];
      	  		childul.style.display = "block";
      	  	}

     	  	Oul.children[1].onmouseout = function () {
     	  		var childul = this.getElementsByTagName("ul")[0];
     	  		childul.style.display = "none";
      	  	}
     	  }
    </script>

<body>
<div id="menu">
	<ul id="list">
		<li><a href="#">首页</a></li>
		<li><a href="#">手机</a>
             <ul>
             	<li><a href="#">各种手机</a></li>
             </ul>
		</li>
		<li><a href="#">宽带</a></li>
		<li><a href="#">关于我们</a></li>
		<li><a href="#">留言</a></li>
		<li><a href="#">微博</a></li>
	</ul>
	
	</div>
</div>
	
</body>
</html>